<% if @custom.valid? %>
  SocialStream.RelationCustom.create({
    relation: {
      id:   <%= @custom.id %>,
      html: "<%= j render(@custom) %>"
    }
  });
<% else %>
  SocialStream.Flash.error('<%= @custom.errors.full_messages.to_sentence %>');
<% end %>

